package cn.xawl.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author lh
 * @create 2020-10-30 18:48
 **/
@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("login.html").setViewName("login");//由于登录后用户不能再次访问登陆页面，所以需要加入判断逻辑
        registry.addViewController("register.html").setViewName("register");
    }
}
